package com.struts.validator;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class TestAction extends ActionSupport implements ModelDriven<User>{

	private User user = new User();
	
	private static final long serialVersionUID = -8910887307484034435L;

	
	
	@Override
	public String execute() throws Exception {
		
		System.out.println(user);
//		addFieldError("age", "errors");
//		return "input";
		return SUCCESS;
	}



//	@Override
	public User getModel() {
		return user;
	}

}
